class Safety_checkFormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Safety_checkTable'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Safety_checksApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Safety_checkFormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Safety_checksAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "safety_checks": "search"

                
myapp.addInitializer -> 
    myapp.Safety_checks_app = new Safety_checksApp()
    myapp.Safety_checks_app.router = new Safety_checksAppRouter controller: myapp.Safety_checks_app

myapp.vent.trigger("routing:started")
